

const state = {
	playDevice: null,
}

const mutations = {
	addPlay(state,device){
		state.playDevice = device;
	},
	removePlay(state,device){
		state.playDevice = device;
	},
}

const actions = {
    /*async addPlayAction({ commit }, device) {*/
    addPlayAction({ commit }, device) {
      commit('addPlay', device);
    },
    removeRlayAction({ commit }, device) {
      commit('removePlay', device);
    },
}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}
